package cc.fostion.photoselector;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import cc.fostion.photoselector.activity.EditorActivity;
import cc.fostion.photoselector.activity.SelectActivity;

/**
 * Created by fostion on 5/12/16.
 */
public class PhotoSelector {

    /**获取图片的方式 照相机/相册*/
    public static int FUN_ONLY_CAMERA = 0;
    public static int FUN_ONLY_GRALLEY = 1;
    public static int FUN_BOTH = 1;

    /** 配置(包括:外观,图标) */
    class Config{
    }

    /**跳转到获取图片*/
    public static void gotoSelector(Context context){
        Intent intent = new Intent(context,SelectActivity.class);
        context.startActivity(intent);
    }

    /**跳转到图片编辑*/
    public static void gotoEditor(Context context, String path){
        Intent intent = new Intent(context,EditorActivity.class);
        intent.putExtra("imagePaths",path);
        context.startActivity(intent);
    }
}
